#include <GL/glut.h>
#include "screens.h"
#include "externs.h"
#include "../draw.h"

void EndScreen::display(void)
{
	glClearColor(0,0,0,0);
	glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );

	glColor3f(1,1,1);
	Draw::Text(300,275,"End Of Game Screen",-1,BIGGER);

  	glutSwapBuffers();
}

void EndScreen::keyboard(unsigned char key,int x, int y)
{
	if(key==27)
	{
		cout << "esc'ye bastin" << endl;
		screenMode=OPENING;
		glutPostRedisplay();
	}
}

void EndScreen::special(int key,int x, int y)
{}

void EndScreen::specialUp(int key,int x, int y)
{}

void EndScreen::keyboardUp(unsigned char key,int x, int y)
{}

void EndScreen::mouse(int button, int state,int x, int y)
{}

void EndScreen::motion(int x, int y)
{}
void EndScreen::passiveMotion(int x, int y)
{

}
